package com.sniper.feign.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author suzhen
 * @create 2018/3/6
 */
@FeignClient("client-hi")
public interface HelloService {


    /**
     * 请求客户端hi
     *
     * @param name
     * @return
     */
    @RequestMapping(value = "hi")
    String hiService(@RequestParam("name") String name);

}
